package com.eco.fanliapp.admin.controller.web;

import com.eco.fanliapp.common.response.ServerResponse;
import com.eco.fanliapp.entity.CommissionScheme;
import com.eco.fanliapp.service.ICommissionSchemeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/web/commissionScheme")
public class CommissionSchemeController {


    @Autowired
    private ICommissionSchemeService commissionSchemeService ;

    /**
     *  动态字段,写入数据库记录,web_commission_scheme
     *
     * @param commissionScheme
     */
   @PostMapping("/insertSelective")
    public ServerResponse insertSelective(CommissionScheme commissionScheme){
        return commissionSchemeService.insertSelective(commissionScheme);
    }




}
